package service.impl;

import dao.TitleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Title;
import service.TitleService;

import java.util.List;

@Service("titleService")
public class TitleServiceImpl implements TitleService{
    @Autowired
    private TitleMapper titleMapper;

    public TitleMapper getTitleMapper() {
        return titleMapper;
    }

    public void setTitleMapper(TitleMapper titleMapper) {
        this.titleMapper = titleMapper;
    }

    @Override
    public List<Title> getTitles() {
        return titleMapper.getTitles();
    }
}
